#!/bin/bash

exec_path=$(dirname "$0")

cd ${exec_path}

mkdir -p ../log


# export REDIS_PASSWORD=xxx
export REDIS_PASSWORD='test_redis_pass'

port=8084

../bin/redis_exporter-v1.71.0.linux-amd64/redis_exporter -web.listen-address 0.0.0.0:${port} >> ../log/log.log 2<&1 &

sleep 1

netstat -ntlp | grep ${port}




